<!-- [get_booking_by_customer_id cus_id=$smarty.get.id] -->
<!--[get_booking_by_customer_id cus_refid=$smarty.get.refid]-->

<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
  <TABLE width="100%" >
    <TR>
      <TH align="left" colspan="2">Reference ID : <b style="color:#dc0e01;"><!--[$refid]--></b>
      <b style="color:#3333CC;">
        <!--[if $status_id == 1]-->
            (FINISHED)
        <!--[elseif $status_id == 2]-->
            (NEW)
        <!--[elseif $status_id == 3]-->
            (UNPAID)
        <!--[elseif $status_id == 4]-->
            (REFUND)
        <!--[/if]-->
      </b> 
      </TH>
    </TR>
  </TABLE>
</div><BR>
<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
  <TABLE width="100%" >
    <TR>
      <TH align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);">Contact details :</TH>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
    <TR>
      <TD align="right" width="30%">Identificational/Passport no. :</TD>
      <TD align="left"  width="70%"><!--[$view.identificational]--></TD>
    </TR>
    <TR>
      <TD align="right">Title  : </TD>
      <TD align="left" ><!--[$view.titlename]--></TD>
    </TR>
    <TR>
      <TD align="right">First Name : </TD>
      <TD align="left" ><!--[$view.firstname]--></TD>
    </TR>
    <TR>
      <TD align="right">Last Name/Surname : </TD>
      <TD align="left" ><!--[$view.lastname]--></TD>
    </TR>
    <TR>
      <TD align="right">Address : </TD>
      <TD align="left" ><!--[$view.address]--></TD>
    </TR>
    <TR>
      <TD align="right">Town/City :</TD>
      <TD align="left" ><!--[$view.city]--></TD>
    </TR>
    <TR>
      <TD align="right">Country : </TD>
      <TD align="left" ><!--[$view.country]--></TD>
    </TR>
    <TR>
      <TD align="right">Zipcode : </TD>
      <TD align="left" ><!--[$view.zipcode]--></TD>
    </TR>
    <TR>
      <TD align="right">Mobile Phone : </TD>
      <TD align="left" ><!--[$view.mobile]--></TD>
    </TR>
    <TR>
      <TD align="right">Home Phone : </TD>
      <TD align="left" ><!--[$view.phone]--></TD>
    </TR>
    <TR>
      <TD align="right">Email : </TD>
      <TD align="left" ><!--[$view.email]--></TD>
    </TR>
      <td class="text" align="right" valign="top">Additional Request :</td>
      <td align="left" ><!--[$view.addition_request]--></td>
    </tr>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
  </TABLE>
</div><BR><BR>


<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">

  <TABLE  width="100%">

    <TR>
      <TH align="left" colspan="2" align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);"> PAYMENT :</TH>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
    <TR>
      <TD align="right" width="30%">Card Type: 
      </TD>
      <TD align="left"  width="70%"><!--[$view.card_type]--></TD>
    </TR>
    <TR>
      <TD align="right">Card Bank Name : </TD>
      <TD align="left" ><!--[$view.card_bank_name]--></TD>
    </TR>
    <TR>
      <TD align="right">Card Issuing Country : </TD>
      <TD align="left" ><!--[$view.card_issuing_country]--></TD>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
  </TABLE>
</div><BR>

<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
  <TABLE width="100%" border="0">
    <TR>
      <TH align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);">Reservation Details :</TH>
    </TR>
    <TR>
      <TD colspan="2">&nbsp;</TD>
    </TR>
    <TR>
      <TD colspan="2" align="left">
        <TABLE>
        <TR>
          <TD<B>Check-in Date :</B></TD>
          <TD><!--[$checkin_date]--></TD>
          <TD>&nbsp;&nbsp;</TD>
          <TD><B>Night(s) of stay :</B></TD>
          <TD><!--[$night]--></TD>
        </TR>
        <TR>
          <TD><B>Check-out Date :</B></TD>
          <TD><!--[$checkout_date]--></TD>
          <TD>&nbsp;&nbsp;</TD>
          <TD><B>No. of Room(s) :</B></TD>
          <TD><!--[$amount_room]--></TD>
        </TR>
        </TABLE>
      </TD>
    </TR>
    <TR>
      <TD colspan="2">
        <TABLE width="100%" border="0" >
          <TR bgcolor="#f9fbf1">
            <TH width="25%">Room Type</TH>
            <TH width="25%">Type of Bed</TH>
            <TH width="10%">Breakfast</TH>
            <TH width="5%">Night<BR>(s)</TH>
            <TH width="5%">Adult<BR>(s)</TH>
            <TH width="5%">Child<BR>(yrs.)</TH>
            <TH width="15%">Total(THB)</TH>
          </TR>
          <!--[foreach from=$bookingArray item=item name="foo"]-->
          <TR>
            <TD align="left" style="padding:2px;">
              <!--[$item.roomtype]-->
            </TD>
            <TD align="left" style="padding:2px;"><!--[$item.bedtype]--></TD>
            <TD align="center" style="padding:2px;"><!--[$item.breakfast]--></TD>
            <TD align="center" style="padding:2px;"><!--[$item.night]--></TD>
            <TD align="center" style="padding:2px;"><!--[$item.adult]--></TD>
            <TD align="center" style="padding:2px;"><!--[if $item.child_age]--><!--[$item.child_age]--><!--[else]-->-<!--[/if]--></TD>
            <TD align="right" bgcolor="#FFFFFF" style="padding-right:5px; "><div align="right"><b style="font-size:12px; color:#000000;  padding-right:5px; ">
                <!--[$item.price]-->
                <!--[php]-->
                    $item = $this->get_template_vars("item");
                    $total_price += $item['price'];
                <!--[/php]-->
            </TD>
          </TR>
         <!--[/foreach]-->
          <TR>
            <TD>&nbsp;</TD>
          </TR>
          <TR>
            <TD colspan="7" align="center">
              <div align="center" style=" font-family:Arial, Helvetica, sans-serif;font-size:16px; background-color:#f0f2e6; padding:3px; width:80%; border: #99bf00 1px  dotted;">
                <b>Total Price :</b>&nbsp;<b style="color:#dc0e01;">
                  <!--[php]-->
                    echo $total_price;
                  <!--[/php]-->
                  <!--[pnsessiongetvar name="total_price"|pnvarprepfordisplay assign="total_price"]-->
                  &nbsp;THB
                </b>
              </div>
              <div align="right" style="padding:3px; width:80%;">
                Change Status : <!--[selector_object_array modname="POBBooking" 
                                    class="Status" 
                                    field="id" 
                                    displayField="name"  
                                    name="form[status_id]" 
                                    selectedValue=$view.status_id 
                                ]--> <button name="button_submit" value='Submit' type="submit" class="button"><img align="absmiddle" src="modules/POBBooking/pnimages/submit.png" />Change</button>

          </TR>
        </TABLE>
      </TD>
    </TR>
  </TABLE>
</div><BR>


<!--[include file='admin_menu_footer.htm']-->